package co.fitstart.coach.dao;

import com.demo2do.core.persistence.annotation.Dynamic;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;

import co.fitstart.entity.course.round.CourseRound;
import co.fitstart.entity.courseware.assessment.StudentAssessment;

/**
 * 
 * @author dan
 *
 */
@Dynamic("hibernate")
public interface BasicInformationDao {
    
    /**
     * 
     * @param courseRound
     * @return
     */
    @Query("FROM StudentAssessment WHERE disabled = false AND courseRound = :courseRound ORDER BY createTime DESC")
    public StudentAssessment loadStudentAssessment(@Variable("courseRound") CourseRound courseRound);

}
